home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / printdr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  1.5 KB  |  51 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. // PrintDr.h : Declaration of the CPrintDr
  12.  
  13. #ifndef __PRINTDR_H_
  14. #define __PRINTDR_H_
  15.  
  16. #include "resource.h"       // main symbols
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPrintDr
  20. class ATL_NO_VTABLE CPrintDr : 
  21.     public CComObjectRootEx<CComSingleThreadModel>,
  22.     public CComCoClass<CPrintDr, &CLSID_PrintDr>,
  23.     public IDispatchImpl<IPrintDr, &IID_IPrintDr, &LIBID_PRINTCADLib>
  24. {
  25. public:
  26.     CPrintDr()
  27.     {
  28.     }
  29.  
  30. DECLARE_REGISTRY_RESOURCEID(IDR_PRINTDR)
  31.  
  32. DECLARE_PROTECT_FINAL_CONSTRUCT()
  33.  
  34. BEGIN_COM_MAP(CPrintDr)
  35.     COM_INTERFACE_ENTRY(IPrintDr)
  36.     COM_INTERFACE_ENTRY(IDispatch)
  37. END_COM_MAP()
  38.  
  39. // IPrintDr
  40. public:
  41.     short m_sDrawMode;
  42.     STDMETHOD(PrintAll)(LPDISPATCH WhichDrawing, long hPrintDC);
  43. private:
  44.     COLORREF m_clrBackGround;
  45.     void SetDrawModeEx(short nNewValue);
  46. protected:
  47.     View* m_pView;
  48. };
  49.  
  50. #endif //__PRINTDR_H_
  51.